package day12;

import java.text.ParseException;
import java.text.SimpleDateFormat;

public class demo1 {
    public static void main(String[] args) throws ParseException {
        new demo1().test();
    }


    public void test() throws ParseException {
        play();
    }
    public void play() throws ParseException {
        System.out.println("执行娱乐方法");
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        //sdf.parse("2014-10-20");
        System.out.println(sdf.parse("2014-10-20 20:20:20"));
    }
}
